/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.javanile.chess.stone;

/**
 *
 * @author totalinnovation
 */
public class Moves {
    private Move[] moves;
    private int	   caret;

    public Moves(int size) {
	moves = new Move[size];
	caret = 0;
    }

    public void move(byte from, byte to, byte moved, byte captured) {
	moves[caret] = new Move(from,to,moved,captured);
	caret++;
    }

    public Move move() {
	return moves[caret];
    }

    public void undo() {
	caret--;
    }
}
